package com.kdgc.power.business.service;

import com.kdgc.power.business.entity.ComDict;
import com.kdgc.power.business.mapper.ComDictMapper;
import com.kdgc.power.common.util.StringUtil;
import com.kdgc.power.fw.service.BaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
import java.util.Map;

@Service
public class ComDictService extends BaseService<ComDict> {
    @Resource
    private ComDictMapper comDictMapper;
    public List<Map<String,Object>>getByCatCode(String catCode){
        if (StringUtil.isNotEmpty (catCode)) {
            return comDictMapper.getByCatCode(catCode);
        }else {
            return Collections.emptyList();
        }
    }
}